package org.mebusw.vo;
// default package



/**
 * AbstractGameStatisticsId entity provides the base persistence definition of the GameStatisticsId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractGameStatisticsId  implements java.io.Serializable {


    // Fields    

     private String gameName;
     private Integer createdCount;
     private Integer playedCount;
     private Integer playerCount;
     private Integer expansion;


    // Constructors

    /** default constructor */
    public AbstractGameStatisticsId() {
    }

    
    /** full constructor */
    public AbstractGameStatisticsId(String gameName, Integer createdCount, Integer playedCount, Integer playerCount, Integer expansion) {
        this.gameName = gameName;
        this.createdCount = createdCount;
        this.playedCount = playedCount;
        this.playerCount = playerCount;
        this.expansion = expansion;
    }

   
    // Property accessors

    public String getGameName() {
        return this.gameName;
    }
    
    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public Integer getCreatedCount() {
        return this.createdCount;
    }
    
    public void setCreatedCount(Integer createdCount) {
        this.createdCount = createdCount;
    }

    public Integer getPlayedCount() {
        return this.playedCount;
    }
    
    public void setPlayedCount(Integer playedCount) {
        this.playedCount = playedCount;
    }

    public Integer getPlayerCount() {
        return this.playerCount;
    }
    
    public void setPlayerCount(Integer playerCount) {
        this.playerCount = playerCount;
    }

    public Integer getExpansion() {
        return this.expansion;
    }
    
    public void setExpansion(Integer expansion) {
        this.expansion = expansion;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof AbstractGameStatisticsId) ) return false;
		 AbstractGameStatisticsId castOther = ( AbstractGameStatisticsId ) other; 
         
		 return ( (this.getGameName()==castOther.getGameName()) || ( this.getGameName()!=null && castOther.getGameName()!=null && this.getGameName().equals(castOther.getGameName()) ) )
 && ( (this.getCreatedCount()==castOther.getCreatedCount()) || ( this.getCreatedCount()!=null && castOther.getCreatedCount()!=null && this.getCreatedCount().equals(castOther.getCreatedCount()) ) )
 && ( (this.getPlayedCount()==castOther.getPlayedCount()) || ( this.getPlayedCount()!=null && castOther.getPlayedCount()!=null && this.getPlayedCount().equals(castOther.getPlayedCount()) ) )
 && ( (this.getPlayerCount()==castOther.getPlayerCount()) || ( this.getPlayerCount()!=null && castOther.getPlayerCount()!=null && this.getPlayerCount().equals(castOther.getPlayerCount()) ) )
 && ( (this.getExpansion()==castOther.getExpansion()) || ( this.getExpansion()!=null && castOther.getExpansion()!=null && this.getExpansion().equals(castOther.getExpansion()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getGameName() == null ? 0 : this.getGameName().hashCode() );
         result = 37 * result + ( getCreatedCount() == null ? 0 : this.getCreatedCount().hashCode() );
         result = 37 * result + ( getPlayedCount() == null ? 0 : this.getPlayedCount().hashCode() );
         result = 37 * result + ( getPlayerCount() == null ? 0 : this.getPlayerCount().hashCode() );
         result = 37 * result + ( getExpansion() == null ? 0 : this.getExpansion().hashCode() );
         return result;
   }   





}